package com.machine.filling.db.dao;

import android.provider.Settings;

import com.machine.filling.MyApp;
import com.machine.filling.db.greendao.GunInfoModleDao;
import com.machine.filling.db.greendao.LocalOrderModleDao;
import com.machine.filling.db.modle.CardTempModle;
import com.machine.filling.db.modle.GunInfoModle;
import com.machine.filling.db.modle.LocalOrderModle;
import com.machine.filling.util.DateUtils;
import com.machine.filling.util.StringUtil;

/**
 * Created by sperfan on 2018/3/20.
 *
 * @描述:
 */

public class LocalOrderDao {

    private static LocalOrderDao instance;
    private static LocalOrderModleDao localOrderModleDao;
    private static LocalOrderModle localOrderModle;
    private final String deviceNum;

    private LocalOrderDao() {
        deviceNum = Settings.System.getString(MyApp.getInstance().getContentResolver(), Settings.Secure.ANDROID_ID);

    }

    public static LocalOrderDao getInstance() {
        if (instance == null) {
            instance = new LocalOrderDao();
            localOrderModleDao = MyApp.getInstance().getDaoSession().getLocalOrderModleDao();
            localOrderModle = new LocalOrderModle();
        }
        return instance;
    }




}
